package net.lanelife.casino.caipiao.dto.admin;

import javax.validation.constraints.NotNull;

import net.lanelife.casino.caipiao.entity.BalanceChangeRecord;
import net.lanelife.casino.common.dto.TransientDTO;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

public class BalanceChangeReasonCreateDTO extends TransientDTO<Integer> {

	private static final long serialVersionUID = -1088463269295668436L;

	@NotNull
	private BalanceChangeRecord.Direction direction = BalanceChangeRecord.Direction.IN;
	
	@NotBlank
	@Length(min = 2, max = 10)
	private String code;
	
	@NotBlank
	@Length(min = 2, max = 10)
	private String name;

	public BalanceChangeRecord.Direction getDirection() {
		return direction;
	}

	public void setDirection(BalanceChangeRecord.Direction direction) {
		this.direction = direction;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
